package com.eloo.otsclient.core;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.eloo.otsclient.ui.OTSClientUI;

public class OTSQueryTicket extends OTSBasicPage {

	// private OTSOrderRequest otsTicketQuery = null;
	// private HtmlPage lastedqueryPage=null;
	OTSSignal oo=new OTSSignal();
	ThreadGroup threadgroup=new ThreadGroup("QueryGroup");
	
	public OTSQueryTicket(OTSWebClient otsWebClien) { 
		this.webClient =OTSWebClient.getRootWebClient();
		OTSClientUI.getJbuttonStartSearch().addActionListener(findTicket);

	}

	ActionListener findTicket = new ActionListener() {
		public void actionPerformed(ActionEvent e) { 
			OTSQueryTicketThread ots = new OTSQueryTicketThread(threadgroup,OTSClientUI.getJtextStartDate().getText(), OTSWebClient.getCloneWebClient(),oo);
			ots.start(); 
			
		 
		}

	};
 
	
	 
}
